<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Dinner.Models.Menu>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Menu Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <fieldset>
        <legend>Menu Details</legend>
        <p>
            <b>Date</b>:
            <%= Html.Encode(String.Format("{0:g}", Model.date)) %>
        </p>
        <p>
            <b>Notes</b>:
            <%= Html.Encode(Model.notes) %>
        </p>
        <p>
			<b>Menu Items</b>
			<ul>
			<% foreach (var menuItem in Model.MenuItems) { %>
				<li>
					<%= Html.ActionLink(menuItem.Item.title, "Item/Details", new { id = menuItem.item_id }) %>
				</li>
			<% } %>
			</ul>
        </p>
    </fieldset>
    <p>

        <%=Html.ActionLink("Edit", "Edit", new { id=Model.menu_id }) %> |
        <%=Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

